
import { request } from "../../../utils/request"

// 语音识别
export function recognition(data:any) {
  return request<any>({
    url: "/pre-consultation/chat/recognition",
    method: "POST",
    data
  })
}

// 对话问答
export function questionAnswer(data:any) {
  return request<any>({
    url: "/pre-consultation/chat/question-answer",
    method: "POST",
    data
  })
}

// 获取就诊信息
export function getVisit(data:any) {
  return request<any>({
    url: "/pre-consultation/chat/get-visit",
    method: "GET",
    data
  })
}

// 重新问诊
export function reconsult(data:any) {
  return request<any>({
    url: "/pre-consultation/chat/reconsult",
    method: "POST",
    data
  })
}

// 预问诊对话列表
export function getPreChats(data:any) {
  return request<any>({
    url: "/pre-consultation/chat/pre-chats",
    method: "GET",
    data
  })
}

// 病历生成
export function getDoc(data:any) {
  return request<any>({
    url: "/pre-consultation/doc/doc-generate",
    method: "POST",
    data
  })
}

// 病历修改
export function modifyDoc(data:any) {
  return request<any>({
    url: "/pre-consultation/doc/batch-modify",
    method: "POST",
    data
  })
}

// 获取对话tts地址
export function getTtsUrl(data:any) {
  return request<any>({
    url: "/pre-consultation/chat/tts-url",
    method: "POST",
    data
  })
}